import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { Image as VanImage } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Lazyload } from 'vant';
import { List } from 'vant';
import { Toast } from 'vant';
import { Slider } from 'vant';
import { Popup } from 'vant';
import { DropdownMenu, DropdownItem } from 'vant';
import { Dialog } from 'vant';
import { Checkbox, CheckboxGroup } from 'vant';
import { Button } from 'vant';
import { Loading } from 'vant';
import { Switch } from 'vant';
import { Uploader } from 'vant';
import { Picker } from 'vant';
import { Collapse, CollapseItem } from 'vant';
import { Tab, Tabs } from 'vant';
import { ShareSheet } from 'vant';
import { Icon } from 'vant';

import App from './App.vue'
import router from './router'

import './assets/main.css'
import 'vant/lib/index.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(VanImage);
app.use(Swipe);
app.use(SwipeItem);
app.use(Lazyload);
app.use(List);
app.use(Toast);
app.use(Slider);
app.use(Popup);
app.use(DropdownMenu);
app.use(DropdownItem);
app.use(Dialog);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Button);
app.use(Loading);
app.use(Switch);
app.use(Uploader);
app.use(Picker);
app.use(Collapse);
app.use(CollapseItem);
app.use(Tab);
app.use(Tabs);
app.use(ShareSheet);
app.use(Icon);

app.mount('#app')
